import { createApp } from 'vue'
import 'normalize.css'

import App from './App.vue'
import router from './router'
import store from './store'
import axios from '@/utils/request'
import '@/assets/styles/common.less'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 导入封装的全局组件
import ui from './components/library'
// 导入全局指令
import definDirective from '@/utils/directive'

const app = createApp(App)
// 组件图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ui)
app.use(definDirective)
app.use(store)
app.use(router)
app.use(axios)
app.mount('#app')
